package models;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

public class ResultadoClasse {

	private static Connection conexao;
	private static Statement comando;
	
	
	
	/***********************************************************************************/
	
	protected static void conectar() throws SQLException {  
		try {
			Class.forName("org.postgresql.Driver");
		} catch (ClassNotFoundException e) {
		}

			conexao = DriverManager.getConnection(  
			        "jdbc:postgresql://localhost:5432/SGRv2",  
			        "postgres",  
			        "senha");
		
			comando =  conexao.createStatement();
	}

	/***********************************************************************************/
	
	
		  int idclasse;
		  String nomeclasse;
	      List<Resultado> lista;
	      
	      	public int getidclasse() {
				return idclasse;
			}
	      	public void setidclasse(int idclasse) {
				this.idclasse = idclasse;
			}	      	
	    	
	    	public String getnomeclasse() {
				return nomeclasse;
			}
	      	public void setnomeclasse(String nomeclasse) {
				this.nomeclasse = nomeclasse;
			}	
	      	public List<Resultado> getlista() {
				return lista;
			}
	      	public void setlista(List<Resultado> lista) {
				this.lista = lista;
			}	
	      	
	      	/*********************************************************************************/
	      	
			
}
